import javax.swing.JTextPane;

class MyJTextPane extends JTextPane
{
  private static final long serialVersionUID = 1L;

  public MyJTextPane()
  {
	System.out.println("MyJTextPane, MyJTextPane()");
  }

  public void append(String s)
  {
	System.out.println("MyJTextPane, append(String s)");
    this.setText(this.getText() + s + "\n");
  }
  
  public void finalize() throws Throwable
  {
	System.out.println("MyJTextPaen, finalize()");
  }
  
  public String toString()
  {
	System.out.println("MyJTextPane, toString()");
	return super.toString();
  }
}